package org.whale.springcloud.eureka.user.ribbon.controller;

import com.google.common.collect.Maps;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.whale.springcloud.eureka.common.entity.JsonResponse;
import org.whale.springcloud.eureka.user.ribbon.service.UserRibbonService;

@RestController
@RequestMapping("/userRibbon")
public class UserRibbonController {

  @Autowired private UserRibbonService userRibbonService;

  @GetMapping("/queryUserInfoViaGet")
  public JsonResponse<String> queryUserInfoViaGet() {

    return userRibbonService.queryUserInfo(Maps.newHashMap());
  }
}
